package club.justwill.single.model;

/**
 * Created by luoyu on 15-12-27.
 */
public class ProjectIntroduceType {
    public static int PROJECT_INTRODUCE = 10;
    public static int TEAM_INTRODUCE = 20;
    public static int PROJECT_SCHEDULE = 30;

    public static String getProjectIntroduceType(int type) {
        switch(type) {
            case 10 : return "PROJECT_INTRODUCE";
            case 20 : return "TEAM_INTRODUCE";
            case 30 : return "PROJECT_SCHEDULE";
            default: return null;
        }
    }

    public static int getProjectIntroduceTypeCode(String type) {
        if(type.equals("PROJECT_INTRODUCE")) { return 10;}
        if(type.equals("TEAM_INTRODUCE")) { return 20;}
        if(type.equals("PROJECT_SCHEDULE")) { return 30;}
        return 0;
    }
}
